package cn.wolfcode.car.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Appointment {

    public static final Integer  SERVICETYPE_MAINTAIN=0;//维修
    public static final Integer  SERVICETYPE_UPKEEP=1; //保养

    public static final Integer  STATUS_APPOINTMENTS=0; //预约中
    public static final Integer  STATUS_ARRIVE=1; //到店中
    public static final Integer  STATUS_USERCANCELLED=2; //用户取消
    public static final Integer  STATUS_TIMEOUTCANCEL=3; //超时取消
    public static final Integer  STATUS_PAID=4; //结算单生成

    public static final Integer  ISDELETE_TURE=1;  //数据已经删除
    public static final Integer  ISDELETE_FALSE=0;  //数据存在

    public static final Integer  SOURCE_NET=2;  //网上预约
    public static final Integer  SOURCE_PHONE=1;  //电话预约


    /** */
    private Long id;

    /** 客户姓名*/
    private String customerName;

    /** 客户联系方式*/
    private String customerPhone;

    /** 预约时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date appointmentTime;

    /** 实际到店时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date actualArrivalTime;

    /** 车牌号码*/
    private String licensePlate;

    /** 汽车类型*/
    private String carSeries;

    /** 服务类型【维修0/保养1】*/
    private Integer serviceType;

    /** 创建时间*/
    private Date createTime;

    /** 备注信息*/
    private String info;

    /** 状态【预约中0/已到店1/用户取消2/超时取消3】*/
    private Integer status;

    /** 是否被清除*/
    private Integer isdelete=ISDELETE_FALSE;

    /** 预约来源(电话,网上)*/
    private Integer source;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhone() {
        return customerPhone;
    }

    public void setCustomerPhone(String customerPhone) {
        this.customerPhone = customerPhone;
    }

    public Date getAppointmentTime() {
        return appointmentTime;
    }

    public void setAppointmentTime(Date appointmentTime) {
        this.appointmentTime = appointmentTime;
    }

    public Date getActualArrivalTime() {
        return actualArrivalTime;
    }

    public void setActualArrivalTime(Date actualArrivalTime) {
        this.actualArrivalTime = actualArrivalTime;
    }

    public String getLicensePlate() {
        return licensePlate;
    }

    public void setLicensePlate(String licensePlate) {
        this.licensePlate = licensePlate;
    }

    public String getCarSeries() {
        return carSeries;
    }

    public void setCarSeries(String carSeries) {
        this.carSeries = carSeries;
    }

    public Integer getServiceType() {
        return serviceType;
    }

    public void setServiceType(Integer serviceType) {
        this.serviceType = serviceType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }
}